package com.ny.wlw;

public class Test03 {
    public static void main(String[] args) {
        Vehicle[] vehicles = new Vehicle[4];
        vehicles[0] = new Car("Toyota", "Camry");
        vehicles[1] = new Bike("Giant", "Defy");
        vehicles[2] = new Car("Honda", "Civic");
        vehicles[3] = new Bike("Trek", "Domane");
        for (Vehicle vehicle : vehicles) {
            vehicle.drive();
        }
    }
}

